const app = getApp()
Component({
  mixins: [],
  data: {
    CustomBarHeight: null, // 整个自定义导航栏的高度
  },
  props: {
    bgColor: "",
    isBack: false,
    backPageUrl: "/pages/index/index"
  },
  didMount() {
    app.getSystemInfoMethod().then(({ statusBarHeight, titleBarHeight }) => {
      this.setData({
        CustomBarHeight: statusBarHeight + titleBarHeight
      })
    })
  },
  didUpdate() {
  },
  didUnmount() { },
  methods: {
    backPage() {
      dd.reLaunch({
        url: this.props.backPageUrl
      });
    }
  },
});
